
#include "styles.h"
#include "components/lvgl/lvgl.h"


#define COLOR_SCR               lv_color_hex(0x333333)
#define COLOR_TEXT_DEFAULT      lv_color_hex(0x4C95A3)
#define COLOR_TEXT_FAKE         lv_color_hex(0xFF0000)
#define COLOR_TEXT_GENUINE      lv_color_hex(0x00FF00)
#define COLOR_STATUS_BAR        lv_color_hex(0x14191E)
#define COLOR_SLIDER_MAIN       lv_color_hex(0x000000)
#define COLOR_SLIDER_INDICATOR  lv_color_hex(0x888888)
#define COLOR_SLIDER_KNOB       lv_color_hex(0x222222)



lv_style_t Style_ScrDefault;

lv_style_t Style_StatusBar;

lv_style_t Style_SliderMain;
lv_style_t Style_SliderIndicator;
lv_style_t Style_SliderKnob;
lv_style_t Style_SliderKnobFoc;

lv_style_t Style_Fake;
lv_style_t Style_Genuine;




void Styles_Init(void)
{
    lv_style_init(&Style_Fake);
    lv_style_set_text_color(&Style_Fake, COLOR_TEXT_FAKE);
    lv_style_set_text_opa(&Style_Fake, 255);

    lv_style_init(&Style_Genuine);
    lv_style_set_text_color(&Style_Genuine, COLOR_TEXT_GENUINE);
    lv_style_set_text_opa(&Style_Genuine, 255);

    lv_style_init(&Style_ScrDefault);
    lv_style_set_bg_opa(&Style_ScrDefault, 255);
    lv_style_set_bg_color(&Style_ScrDefault, COLOR_SCR);
    lv_style_set_text_color(&Style_ScrDefault, COLOR_TEXT_DEFAULT);
    // lv_style_set_text_opa(&Style_ScrDefault, 255);

    lv_style_init(&Style_StatusBar);
    lv_style_set_bg_opa(&Style_StatusBar, 200);
    lv_style_set_bg_color(&Style_StatusBar, COLOR_STATUS_BAR);

    lv_style_init(&Style_SliderMain);
    lv_style_set_bg_opa(&Style_SliderMain, 255);
    lv_style_set_bg_color(&Style_SliderMain, COLOR_SLIDER_MAIN);

    lv_style_init(&Style_SliderIndicator);
    lv_style_set_bg_opa(&Style_SliderIndicator, 255);
    lv_style_set_bg_color(&Style_SliderIndicator, COLOR_SLIDER_INDICATOR);

    lv_style_init(&Style_SliderKnob);
    lv_style_set_radius(&Style_SliderKnob, 8);
    lv_style_set_bg_color(&Style_SliderKnob, COLOR_SLIDER_KNOB);
    lv_style_set_bg_opa(&Style_SliderKnob, 255);
    lv_style_set_outline_color(&Style_SliderKnob, lv_color_hex(0x6B6B6B));
    lv_style_set_outline_opa(&Style_SliderKnob, 255);
    lv_style_set_outline_width(&Style_SliderKnob, 2);
    lv_style_set_outline_pad(&Style_SliderKnob, 0);
    lv_style_set_pad_left(&Style_SliderKnob, 5);
    lv_style_set_pad_right(&Style_SliderKnob, 5);
    lv_style_set_pad_top(&Style_SliderKnob, 5);
    lv_style_set_pad_bottom(&Style_SliderKnob, 5);

    lv_style_init(&Style_SliderKnobFoc);
    lv_style_set_bg_color(&Style_SliderKnobFoc, lv_color_hex(0x222222));
    lv_style_set_bg_opa(&Style_SliderKnobFoc, 255);
    lv_style_set_outline_color(&Style_SliderKnobFoc, lv_color_hex(0xBBBBBB));
    lv_style_set_outline_opa(&Style_SliderKnobFoc, 255);
}
